package cn.zhaopin.starter.security.convert;

import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.security.core.Authentication;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;

/**
 * Description: 微信小程序绑定手机号授权信息转转换
 *
 * @author zuomin (myleszelic@outlook.com)
 * @date: 2021/10/29-13:58
 */
public class WechatMpBindPhoneAuthenticationConverter extends BasicAuthenticationConverter {

    @Override
    public Mono<Authentication> convert(ServerWebExchange exchange) {
        ServerHttpRequest request = exchange.getRequest();

        //设置路径缓存
        holderPathValue(request.getPath().value());

        //封装未认证的token
        return null;
    }
}
